package com.wunu.smartlock1.net.param;


import com.google.gson.annotations.SerializedName;

public class BindLockParam {

    @SerializedName("mac")
    private String lockMac;

    @SerializedName("model")
    private int lockModel = 1;

    @SerializedName("image")
    private String lockImageUrl;

    private int basecode;

    @SerializedName("name")
    private String lockName;

    @SerializedName("note")
    private String lockNote;

    private BindLockParam(Builder builder) {
        setLockMac(builder.lockMac);
        setLockModel(builder.lockModel);
        setLockImageUrl(builder.lockImageUrl);
        setBasecode(builder.basecode);
        setLockName(builder.lockName);
        setLockNote(builder.lockNote);
    }
    @Override
    public String toString() {
        return "lockMac:"+lockMac+"\t"+"lockModel:"+lockModel+"\tlockImageUrl:"+lockImageUrl+"\tbasecode:"+basecode+"\tlockName:"+lockName+"\tlockNote"+lockNote;
    }
    public String getLockMac() {
        return lockMac;
    }

    public void setLockMac(String lockMac) {
        this.lockMac = lockMac;
    }


    public int getLockModel() {
        return lockModel;
    }

    public void setLockModel(int lockModel) {
        this.lockModel = lockModel;
    }

    public String getLockImageUrl() {
        return lockImageUrl;
    }

    public void setLockImageUrl(String lockImageUrl) {
        this.lockImageUrl = lockImageUrl;
    }

    public int getBasecode() {
        return basecode;
    }

    public void setBasecode(int basecode) {
        this.basecode = basecode;
    }

    public String getLockName() {
        return lockName;
    }

    public void setLockName(String lockName) {
        this.lockName = lockName;
    }

    public String getLockNote() {
        return lockNote;
    }

    public void setLockNote(String lockNote) {
        this.lockNote = lockNote;
    }


    public static final class Builder {
        private String lockMac;
        private int lockModel;
        private String lockImageUrl;
        private int basecode;
        private String lockName;
        private String lockNote;

        public Builder() {
        }

        public Builder setLockMac(String val) {
            lockMac = val;
            return this;
        }

        public Builder setLockModel(int val) {
            lockModel = val;
            return this;
        }

        public Builder setLockImageUrl(String val) {
            lockImageUrl = val;
            return this;
        }

        public Builder setBasecode(int val) {
            basecode = val;
            return this;
        }

        public Builder setLockName(String val) {
            lockName = val;
            return this;
        }

        public Builder setLockNote(String val) {
            lockNote = val;
            return this;
        }

        public BindLockParam build() {
            return new BindLockParam(this);
        }
    }
}
